/**
 * Created by liu on 12/7/2017.
 */


import AdminLogin from './views/admin/core/Login.vue'
import AdminMain from './views/admin/core/Main.vue'
import AdminDashboard from './views/admin/core/Dashboard.vue'

import AdminBookList from './views/admin/book/book/List.vue'
import AdminBookCreate from './views/admin/book/book/Create.vue'

import AdminBookBorrowConfirmList from './views/admin/book/bookBorrowConfirm/List.vue'

import AdminBookInfoList from './views/admin/book/bookInfo/List.vue'
import AdminBookInfoCreate from './views/admin/book/bookInfo/Create.vue'
import AdminBookInfoEdit from './views/admin/book/bookInfo/Edit.vue'
import AdminBookInfoDetail from './views/admin/book/bookInfo/Detail.vue'

import AdminBookTypeList from './views/admin/book/bookType/List.vue'
import AdminBookTypeCreate from './views/admin/book/bookType/Create.vue'
import AdminBookTypeEdit from './views/admin/book/bookType/Edit.vue'
import AdminBookTypeDetail from './views/admin/book/bookType/Detail.vue'

import AdminBookBorrowingList from './views/admin/book/bookBorrowing/List.vue'
import AdminBookBorrowing from './views/admin/book/bookBorrowing/Borrowing.vue'
import AdminBookReturnList from './views/admin/book/bookReturn/List.vue'

import AdminBookUseRecordList from './views/admin/book/bookUseRecord/List.vue'

import AdminBookCommentList from './views/admin/book/bookComment/List.vue'
import AdminBookCommentCreate from './views/admin/book/bookComment/Create.vue'


import AdminCommunityInfoList from './views/admin/community/communityinfo/List.vue'
import AdminCommunityInfoCreate from './views/admin/community/communityinfo/Create.vue'

import AdminCommunityPostList from './views/admin/community/communitypost/List.vue'
import AdminCommunityPostCreate from './views/admin/community/communitypost/Create.vue'

import AdminCommunityPostReturnList from './views/admin/community/communitypostreturn/List.vue'
import AdminCommunityPostReturnCreate from './views/admin/community/communitypostreturn/Create.vue'

import AdminNoticeList from './views/admin/community/notice/List.vue'
import AdminNoticeCreate from './views/admin/community/notice/Create.vue'

import AdminReaderInfoList from './views/admin/reader/readerInfo/List.vue'
import AdminReaderInfoCreate from './views/admin/reader/readerInfo/Create.vue'
import AdminReaderInfoDetail from './views/admin/reader/readerInfo/Detail.vue'

import AdminUserList from './views/admin/basic/user/List.vue'
import AdminUserCreate from './views/admin/basic/user/Create.vue'
import AdminUserDetail from './views/admin/basic/user/Detail.vue'
import AdminUserEdit from './views/admin/basic/user/Edit.vue'
import AdminUserResetPwd from './views/admin/basic/user/ResetPwd.vue'

import ReaderLogin from './views/reader/core/Login.vue'
import ReaderRegister from './views/reader/core/Register.vue'
import ReaderResetPwd from './views/reader/core/ResetPwd.vue'
import ReaderMain from './views/reader/core/Main.vue'
import ReaderBookEntry from './views/reader/book/BookEntry.vue'
import ReaderBookDetail from './views/reader/book/BookDetail.vue'
import ReaderMyBook from './views/reader/book/MyBook.vue'
import ReaderMyComment from './views/reader/book/MyComment.vue'
import ReaderMyFriend from './views/reader/book/MyFriend.vue'

import ReaderCommunityInfo from './views/reader/community/CommunityInfo.vue'
import ReaderCommunityPostList from './views/reader/community/CommunityPostList.vue'
import ReaderCommunityPostReturnList from './views/reader/community/CommunityPostReturnList.vue'



let routes = [
    {
        path: '/admin/login',
        component: AdminLogin,
        name:'admin-login'
    },
    {
        path: '/',
        component: AdminMain,
        name:'admin-main',
        children: [
            { path: '/admin/core/dashboard', component: AdminDashboard, name: 'admin-dashboard' },

            { path: '/admin/basic/user/list', component: AdminUserList, name: 'admin-user-list' },
            { path: '/admin/basic/user/create', component: AdminUserCreate, name: 'admin-user-create' },
            { path: '/admin/basic/user/detail/:userId', component: AdminUserDetail, name: 'admin-user-detail' },
            { path: '/admin/basic/user/edit/:userId', component: AdminUserEdit, name: 'admin-user-edit' },
            { path: '/admin/basic/user/reset-pwd/:userId', component: AdminUserResetPwd, name: 'admin-user-reset-pwd' },

            { path: '/admin/book/book/list', component: AdminBookList, name: 'admin-book-list' },
            { path: '/admin/book/book/create', component: AdminBookCreate, name: 'admin-book-create' },

            { path: '/admin/book/book-borrow-confirm/list', component: AdminBookBorrowConfirmList, name: 'admin-book-borrow-confirm-list' },

            { path: '/admin/book/book-info/list', component: AdminBookInfoList, name: 'admin-book-info-list' },
            { path: '/admin/book/book-info/create', component: AdminBookInfoCreate, name: 'admin-book-info-create' },
            { path: '/admin/book/book-info/edit/:bookInfoId', component: AdminBookInfoEdit, name: 'admin-book-info-edit' },
            { path: '/admin/book/book-info/detail/:bookInfoId', component: AdminBookInfoDetail, name: 'admin-book-info-detail' },

            { path: '/admin/book/book-type/list', component: AdminBookTypeList, name: 'admin-book-type-list' },
            { path: '/admin/book/book-type/create', component: AdminBookTypeCreate, name: 'admin-book-type-create' },
            { path: '/admin/book/book-type/edit/:bookTypeId', component: AdminBookTypeEdit, name: 'admin-book-type-edit' },
            { path: '/admin/book/book-type/detail/:bookTypeId', component: AdminBookTypeDetail, name: 'admin-book-type-detail' },

            { path: '/admin/book/book-borrowing/list', component: AdminBookBorrowingList, name: 'admin-book-borrowing-list' },
            { path: '/admin/book/book-borrowing', component: AdminBookBorrowing, name: 'admin-book-borrowing' },
            { path: '/admin/book/book-return/list', component: AdminBookReturnList, name: 'admin-book-return-list' },

            { path: '/admin/book/book-use-record/list', component: AdminBookUseRecordList, name: 'admin-book-use-record-list' },

            { path: '/admin/book/book-comment/list', component: AdminBookCommentList, name: 'admin-book-comment-list' },
            { path: '/admin/book/book-comment/create', component: AdminBookCommentCreate, name: 'admin-book-comment-create' },

            { path: '/admin/community/community-info/list', component: AdminCommunityInfoList, name: 'admin-community-info-list' },
            { path: '/admin/community/community-info/create', component: AdminCommunityInfoCreate, name: 'admin-community-info-create' },

            { path: '/admin/community/community-post/list', component: AdminCommunityPostList, name: 'admin-community-post-list' },
            { path: '/admin/community/community-post/create', component: AdminCommunityPostCreate, name: 'admin-community-post-create' },

            { path: '/admin/community/community-post-return/list', component: AdminCommunityPostReturnList, name: 'admin-community-post-return-list' },
            { path: '/admin/community/community-post-return/create', component: AdminCommunityPostReturnCreate, name: 'admin-community-post-return-create' },

            { path: '/admin/community/notice/list', component: AdminNoticeList, name: 'admin-notice-list' },
            { path: '/admin/community/notice/create', component: AdminNoticeCreate, name: 'admin-notice-create' },

            { path: '/admin/reader/reader-info/list', component: AdminReaderInfoList, name: 'admin-reader-info-list' },
            { path: '/admin/reader/reader-info/create', component: AdminReaderInfoCreate, name: 'admin-reader-info-create' },
            { path: '/admin/reader/reader-info/detail/:readerInfoId', component: AdminReaderInfoDetail, name: 'admin-reader-info-detail' },
        ]
    },
    {
        path: '/reader/login',
        component: ReaderLogin,
        name:'reader-login'
    },

    {
        path: '/reader',
        component: ReaderMain,
        name:'reader-main',
        children: [
            { path: '/reader/register', component: ReaderRegister, name:'reader-register'},
            { path: '/reader/reset-pwd', component: ReaderResetPwd, name:'reader-reset-pwd'},
            { path: '/reader/core', component: ReaderMain, name: 'reader-main' },

            { path: '/reader/book/book-entry', component: ReaderBookEntry, name: 'reader-book-entry' },
            { path: '/reader/book/book-detail', component: ReaderBookDetail, name: 'reader-book-detail' },
            { path: '/reader/book/my-book', component: ReaderMyBook, name: 'reader-my-book' },
            { path: '/reader/book/my-comment', component: ReaderMyComment, name: 'reader-my-comment' },
            { path: '/reader/book/my-friend', component: ReaderMyFriend, name: 'reader-my-friend' },
            { path: '/reader/community/community-info', component: ReaderCommunityInfo, name: 'reader-community-info' },
            { path: '/reader/community/community-post-list', component: ReaderCommunityPostList, name: 'reader-community-post-list' },
            { path: '/reader/community/community-post-return-list', component: ReaderCommunityPostReturnList, name: 'reader-community-post-return-list' },

        ]
    },
];

export default routes;